package comparator;

import java.util.Comparator;

/**
 * 临时排序规则
 * 多种排序
 */
public class PersonComparator implements Comparator<Person> {

    @Override
    public int compare(Person o1, Person o2) {
        return o1.age - o2.age;
    }

}
